package com.xzit.day07.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("user_account")
public class UserAccount {
    @TableId(type = IdType.ASSIGN_ID) // 使用雪花算法
    private Long id;
    
    private String name;
    
    private Integer balance;
    
    @Version // 乐观锁版本号注解
    private Integer version;
}